#pragma once
#include "tcp_server.h"
namespace sylar{
namespace http
{
	class Http_Connect :public TcpServer
	{
	public:
		using ptr = std::shared_ptr<Http_Connect>;
		Http_Connect(bool keeplive = false, IOManager* worker = IOManager::GetThis());
		~Http_Connect() {}

		//void setServletDispatch(ServletDispatch::ptr v) { m_dispatch = v; }
		//ServletDispatch::ptr getServletDispatch()const { return m_dispatch; }
	protected:
		virtual void handleClient(Socket::ptr)override;
	private:
		bool m_isKeepalive;
		//ServletDispatch::ptr m_dispatch;
	};

} }


